//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['The Ghost Inside','Toads Place CT','New Haven, CT','Tuesday','4/30/2024','7:00 PM','6250048','The-Ghost-Inside-4-30-2024'],['From Ashes to New','Toads Place CT','New Haven, CT','Saturday','5/4/2024','6:00 PM','6292806','From-Ashes-to-New-5-4-2024'],['High On Fire','Toads Place CT','New Haven, CT','Saturday','5/11/2024','7:00 PM','6330176','High-On-Fire-5-11-2024'],['Hanabie','Toads Place CT','New Haven, CT','Friday','5/17/2024','7:00 PM','6264902','Hanabie-5-17-2024'],['Sebastian Bach','Toads Place CT','New Haven, CT','Tuesday','5/21/2024','8:00 PM','6295661','Sebastian-Bach-5-21-2024'],['Buckethead','Toads Place CT','New Haven, CT','Thursday','5/23/2024','9:00 PM','6319170','Buckethead-5-23-2024'],['Abbath','Toads Place CT','New Haven, CT','Friday','5/24/2024','6:30 PM','6295862','Abbath-5-24-2024'],['Smash Into Pieces','Toads Place CT','New Haven, CT','Saturday','5/25/2024','7:00 PM','6150219','Smash-Into-Pieces-5-25-2024'],['The Alarm, The Blow Monkeys & Belouis Some','Toads Place CT','New Haven, CT','Sunday','5/26/2024','7:00 PM','6220077','The-Alarm--The-Blow-Monkeys---Belouis-Some-5-26-2024'],['Symphony X','Toads Place CT','New Haven, CT','Thursday','5/30/2024','8:00 PM','6264962','Symphony-X-5-30-2024'],['Earth: Black Sabbath Tribute','Toads Place CT','New Haven, CT','Saturday','6/1/2024','3:30 PM','6354929','Earth--Black-Sabbath-Tribute-6-1-2024'],['The Warped Tour Band','Toads Place CT','New Haven, CT','Saturday','6/8/2024','7:30 PM','6317046','The-Warped-Tour-Band-6-8-2024'],['Monsieur Perine','Toads Place CT','New Haven, CT','Friday','6/14/2024','8:00 PM','6252769','Monsieur-Perine-6-14-2024'],['Saosin','Toads Place CT','New Haven, CT','Sunday','6/16/2024','7:30 PM','6406679','Saosin-6-16-2024'],['Niko Moon','Toads Place CT','New Haven, CT','Thursday','6/20/2024','8:00 PM','6401323','Niko-Moon-6-20-2024'],['Charles Esten','Toads Place CT','New Haven, CT','Saturday','6/22/2024','7:30 PM','6340770','Charles-Esten-6-22-2024'],['Charles Wesley Godwin','Toads Place CT','New Haven, CT','Sunday','7/21/2024','7:30 PM','6378613','Charles-Wesley-Godwin-7-21-2024'],['The Dip','Toads Place CT','New Haven, CT','Thursday','8/15/2024','8:00 PM','6343238','The-Dip-8-15-2024'],['Crumb','Toads Place CT','New Haven, CT','Thursday','9/5/2024','8:00 PM','6403727','Crumb-9-5-2024'],['Bowling for Soup','Toads Place CT','New Haven, CT','Thursday','9/19/2024','7:30 PM','6343475','Bowling-for-Soup-9-19-2024'],['Morgan Wade','Toads Place CT','New Haven, CT','Sunday','9/29/2024','7:30 PM','6378615','Morgan-Wade-9-29-2024'],['Mother Mother','Toads Place CT','New Haven, CT','Monday','9/30/2024','8:00 PM','6396624','Mother-Mother-9-30-2024'],['Ricky Montgomery','Toads Place CT','New Haven, CT','Thursday','10/17/2024','8:00 PM','6397071','Ricky-Montgomery-10-17-2024'],['Movements, Teenage Wrist & Queen of Jeans','Toads Place CT','New Haven, CT','Friday','5/9/2070','TBD','4409586','Movements--Teenage-Wrist---Queen-of-Jeans-5-9-2070'],['Zach Deputy','Toads Place CT','New Haven, CT','Friday','8/1/2070','TBD','4379942','Zach-Deputy-8-1-2070']],'Toads Place New Haven','http://www.ticketnetwork.com/ticket/Toads-Place-New-Haven-events.aspx');